package com.neu.icloud.service;

import java.util.List;

import com.neu.icloud.entity.Mechine;

public interface MechineService {
	
	public int addMechine(Mechine mechine);
	
	public int updateMechine(Mechine mechine);
	
	public int updateMechineState(Mechine mechine);

	public int removeMechineByMechineId(String mechineId);

	public int removeMechineByFactoryId(Integer factoryId);
 
	public List<Mechine> listMechineByMechineId(String mechineId);

	public List<Mechine> listMechineByFactoryId(Integer factoryId);

	public List<Mechine> selectAll();
	
	public int runNum(String mechineState);
	
	public int allNum();
}
